/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Source;

/**
 *
 * @author Joshua King
 */
public class CreateManager {
    private String user;
    private String password;
    private String confirmPassword;
    private String firstName;
    private String lastName;
    private String address;

    public void setAddress(String address) {
        this.address = address;
    }

    public void setConfirmPassword(String confirmPassword) {
        this.confirmPassword = confirmPassword;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public boolean checkValidity() {
        if (user.equals("") || password.equals("") || 
                confirmPassword.equals("") || firstName.equals("") || 
                lastName.equals("") || address.equals("")) {
            return false;
        }
        return true;    
    }

    public boolean commitData() {
        //code this shit here and everything.
        return true;
    }

}
